import request from '@/utils/request'

// 查询救援任务列表
export function listJiuyvanrenwu(query) {
  return request({
    url: '/jiuyvanrenwu/jiuyvanrenwu/list',
    method: 'get',
    params: query
  })
}

// 查询救援任务详细
export function getJiuyvanrenwu(id) {
  return request({
    url: '/jiuyvanrenwu/jiuyvanrenwu/' + id,
    method: 'get'
  })
}

// 新增救援任务
export function addJiuyvanrenwu(data) {
  return request({
    url: '/jiuyvanrenwu/jiuyvanrenwu',
    method: 'post',
    data: data
  })
}

// 修改救援任务
export function updateJiuyvanrenwu(data) {
  return request({
    url: '/jiuyvanrenwu/jiuyvanrenwu',
    method: 'put',
    data: data
  })
}

// 删除救援任务
export function delJiuyvanrenwu(id) {
  return request({
    url: '/jiuyvanrenwu/jiuyvanrenwu/' + id,
    method: 'delete'
  })
}

